Old prune function saved