Use lazy attribute evaluation and add template.