Attempted Fixing File IO