Use unique template key. Fixes #32