Added redirect and sql template.