It might be a lot easier to put the pmp flag on the mediaengine and handle it with the existing logic there.  It shouldn't be too different.

-[Unknown]