Debugging new method for retrieving file