Updated the code to use the ISR