Modified read_spec to be able to read Adam's templates.