Separated results writing in different classes. Modified after fusion postprocessing.