Disabled interrupts earlier in timer_sleep; changed optimization flag to O0 to allow for easier debugging.