Postprocessing for tasks 3,4,5