thanks for that i added a sleep time in milliseconds and thats working fine now.