Updated some file io commands