Added controls for the threshold range