Added the ability to specify variations, indices, and discontiguous mode in C#