Added support for ISR routine. Untested.