Added support for adding instances