Implemented main cycle of the second order paropt process.