Initial code for interrupt handling