Added simulated prune function
Simulated prune function integrated