All print commands replaced by logging calls.