Improved the single file template.