An attempt to fix C#raft and somewhat refactor it to work.