Partially working create_template
Working create_template