Changed how edit commands are performed