Added a bit of async i/o implementation.