Add rename and insert attribute to instances