Moved http client instantiation