Change psmf to psmfStruct as per unknownbrackets suggestion