A prototype for a tool I am making. The code is in C# and it seems to work well.