Added a debug result sink.