Change MS functions to private