Add functions to use sequences from c#