Implemented the delay timer.