Adding the switch to control using subdivsion method.