Updating example to separate API from NodeHandle