Changed the delay in the code