changed naming of spec to template. Makes more sense.