The predictor-corrector function now properly works.