Removed usage of abs() method