Added functionality to download file from server.