Changes to ms

Changes to ms code.