Started using queues for threads. Moved listen() to seperate thread for future expansion.