Magnesium processes