Added logging to HTTP communication