Added new file I/O