Fixed file IO.