Batch: add initial implementation of function; see #19