hlim10 kchen26 : Extracted duplicated code to Constants