Added optional template switch.