Cleans up file