Added  function and tests
Updated  to stop at ttl and register async expr
Added phase to the scope to indicate the digest state