Add transform MPrim function.