Moved smarty around and started templating