Add file download function.