Refactored process of creating sar files