Modified to remove local file after transferring offsite.