Changed method of getting label values