Implemented file retrieval API