Implemented templating and substituting of data.