Moved logger to a class.