Added way to pass template_data via