Added button timer code