Added slider to threshold option