Replaced println with logger