Initialize template variables