Added Smarty integration