Prune and edit