Changed handling of recursive calls and removed the Abs call.