Implemented templating.
Added templating.