Added code to handle arrays of labels