Larn ported to C#