Various small changes
Fixed updateOneQueue behavior if no other queues are active
Simplified threshold timer system
Fixed meanDelay calculation