Made logging consistent