Fix the multi-client problem, add preprocessing, postprocessing and formatting step