Added break to set_label to end foreach loop execution