Changes magic numbers to constants.