Update entities.