Added log handlers, changed batch API, results out