Added (but didn't implement) the code for queues.