Fixed I/O issues.