Moving magic numbers to constants.