Added the option to choose templates