Should work for single switch topology now; needs testing then refactoring for multi-switch topology