Removes template stuff