Adapted to work with I/O Docs