Implementing the queue_manager