Changed system.out.println to loggers