Trying a RKA function with stopping value to test against, instead of final time.