Smarty support added