Implemented batch writes and deletes