Removed many debug messages and prevented clicking of buttons during flashing sequence