Added createLabels functionality