Added file I/O and config