Prune max threshold added