Implement bulk api for #7