Refactored to create postprocessor class