Rename im.set_new_state to im.create_and_set_state