Integrating interrupt code