Attempted batch outputting

Not entirely working yet