added max queue lengths statistics