Change sysouts to log.