Replaced System.out by Logger.