Using hasCapability