Replaced sysouts with logger calls.