Implement writeMany