Replaced numeric variables in functions with descriptive variables