Added functions to disable and enable the RTOS (via timer interrupts).