Merge modifyPMForm function