Improved PPD.
Moved logical planning to QM.