May want to sanity check that psmfData is a valid pointer to avoid crashes on misuse.