Erased generated stuff
Imported template etc from Tom Prestorn-Werner