Removed Math.abs

Slightly simplified the code - no functional changes.