Started implementing threaded version of the server