Changes to Analysis_MP.r only