Added registerAbility method