Even uglier, supports flexible number of VLANs