Updating the primary file