Fixed context switches to be handled via interrupts.