Using again find instead of getTemplates and renamed the 'type' option to 'template'