Changed castflow terminology to use router rather than switch.