Update Mag.cs