Updated to latest Smarty