Changed managed items to use queues not stacks