Added Blocking Queues for thread safe operation