Improve pending messages stats