Init queues, threads