Added prune and check call