Implement button repeat (for UI) and remove debugging output.