Added support for "in-situ" ISRs that don't invoke a separate thread.