Using Logger instead of puts