Added node relabelling to ApplyRule.