Added multithreaded handling of requests