First version of batching that has some amount of successful functioning. Still refining but want to check in snapshot.