Replaced bool argument "use_slider" with an enum.