Fixed logging issues.