Added threshold spinbox