Adding model templating.