Preparation for interrupts