Change schemaSlice to a slice of pointers to structs.