Introduced logger in place of println