Take out the wait and just mash the button, or make it a longer wait. 1 is probably too short to be reliable.