Implementation of LabelManager (prototype)