Began implementation for writing info to file