Create Custom variable for template mode