Re-added IsGM and IsMod functions