Added support for remote logging.