QMDP partially working