Add logging option.