Emergency rewritten using interrupts