Changed order of dependents in rules so as to follow topo order