I'm so angry I wrote some C code.