Begining of entity batch implenetation