First draft rewrite of batch_create