Improved file download