Improved logging, added httpClient