Replaced (most) std(out/err) calls with logger calls.