Vectorize the label method