Creating template
Updated for actual application
Use Rewrite Snapshots