Migrated Pmulti and Mmulti to selection. For being called by other programs.