Removed Smarty dependency