Initial threading, queues and plugin loading