Replaced magic numbers