Fixed SCI-992, removed use of global threshold and used local one