Removed unneeded 'abs' function