Unstable, undocumented and ugly code that's doing the job