Added file download functionality