Renumber MSK and EMSK to match the rest of the code