Removed extraneous file access code