Set up template for file