Moved ISR code to Interrupt instead of Thread class