Download functionality added. #654