Download file and deletion code added.