Added primitive file download logic