Pass the instance around when calling the templates

This way templates can leverage that data if necessary.