Changed standard output to average waiting time