Changed schema from field to hashmap in case of multiple schemas.