Solved some IO issues.