Implemented configurable state id template. Closes #91.