Does this exist in legacy?  legacy usually used bit mask for this.