Fixed indentation.
Replaced magic numbers.