Modify the processing logic of mainframe