More correct logging