WIP. Added instances/templates.