Added a post_step option in solverbase.