It's been ugly for a long time, mostly because it was coded when we lacked easy functions for a ton of stuff. Large sections of the code probably need a major rewrite, especially the element handling. Back then, there weren't any elemental forms. As for my previous work on this, it was probably...