Finished I/O. Modularize Code.