Replaced magic numbers with variables.