add queue length measurement