GetMedium replaced by CurrentMedium (I.Hrivnacova)