Added threading to speed up request handling and response building.