Adding logging option.