Removed direct use of live_queue->root and replaced it with function