Fix remote logging.
More work