Logging method added.