Updated System.out calls to use logger log functions instead.