Port from .net ICSNomadix