Implemented downloading of file.