Allows the label to be a function.