Just like to take a moment to say thanks to redphoenix and germanunkol for
the help on above code it is now working right. Will continue working on my
project and will give credit when complete.
Thank you very much!