Added support for active tasks during I/O.  Fixes #65
Added support for active tasks during I/O.  Fixes #65