Move I/O out of tasks.