Implemented condition pruning