Defaulted templates. Fixed some errors.