Changed the waiting time to 5 sec