Extract result writer.
Sample: Move probability calculation to sample.
Refactor.
Refactor sample.
Testing some combinations.