Use deferred collection for templates