A few convenience functions to deal with templates
No need to clone, it seems