Add multi-way gates