Updated code to multiple templates for each answer type.