Added threads and queues.
 -> To make our implementation behave asynchronously.