Added IntermediaryResultHandler, support for logging intermediary results before timeout.