Added thread local handling of the request