Added file download funcitonality