Rewrote schedule parallelization and dynamic solving.