Written in C. Expect it to break.