Added custom variables to template