Changing the ISR logic.