Added dynamic template variables and basic conversion logic.