function rename: untilInstanceState -> until_instance_state
an update to the example code