Template

Replaced the index creation with a template, which is easier and once off.