Corrected sysout stuff to log messages.