Initial copy from mini_template.