Updated log handling.