Replaced sysout by logger