Magnesium is a necessary cofactor in thiamin-dependent metabolism, and hypomagnesemia should be corrected using magnesium sulfate 1 to 2 g IM or IV every 6 to 8 hours or magnesium oxide 400 to 800 mg orally once / day.