Small change: output total size of queue for ref
minimizing constraints