Implemented some changes that allow values to be returned clamped within -1 to 1 range.