Made the parameter a switch