made timer threshold configurable