added a delay to the timer