Add support for new Smarty

Add support for new Smarty