(Hopefully) fix System.out / logging errors.