Implemented the Download agent