Added download file functionality