Added functions to load queues