Replaced all System.out.println with logger (debug level).