Added a logging class.