Added a logger instead