Eliminated most magic numbers.