Its all working fine now. A big thank you to DaveMata who answered my mail to him and got it sorted.