Add exhaustive option to template. Closes #22