Since we can't rewrite it in ruby we can rewrite it in C
Since we can't rewrite it in ruby we can rewrite it in C