Proper template selection