Fixing compile error. It seems like these should be fabs instead of abs anyway...