Trying to fix remote logger - probably race condition problems...