Magic numbers moved to constants.