Fix tf lookup, compute stopping distance continuously