MPGraphReplacer now takes into account conditions