Working version of KPMF (need to play with params)