Added code to approximate waiting times