Sysouts replaced with logging