Representing queues