Port of MedSTC to Mac