Don't judge me.

Was written two years ago, on the fly. So there is no documentation, not
comments, nothing that will help you understand it.