Lambda prototype update to support more batch operators + automatic batch output flushing