Implemented QP, finalized.