Fixed declaration of handleInterrupts