Clean up gestures and remove debugging statements.