Update source code for I/O