Cleaned up the file ins and outs