Added ability to set delay of button