Embeded code for MultiPMs