Undid code to graph the threshold.