Redid edit function.