Added slider for value threshold