Changed statement order. Removed magic number.