Fixed a bug where average wait time did not compute as expected.