Adding queues and stacks