Update mpnetwork.m