Added Threshold Switch and Add Constant