Added file retrieval functionality