#1: Fixed thread safe logging.