Added queue and config reading code