Made an error on running mpc fatal, and made regex slightly more robust.