Added smarty template engine