Added ability to configure checking queue lengths and cancel the delay