Replacing the use or System.out.println with LOGging.