Basic logic behind prune action is good.