PFMF was littered with code that apply only to SSKE.  This does not address the setting of the reference and change bits when the clear function is requested.  I expect these are wrong too.