ha: implemented add_instance.
ha: implemented remove instance.