Wrote first (not correctly working) version of the templatablepackager.