Changed 'type' to 'cap-type' on Instance.