Added http client code