Conitnued work on smarty templating.