This logic will be shared by the tag command when we implement that.
This logic will be shared by the tag command when we implement that.