Changing abs to fabs.