Added templ.
Added some changes.