Added smarty library