Adding template stuff