Current issue: Neverending loops, simpledomelement did magic with setting and resetting parents and whatnot. Strictly translated the code, now I have circular referencing fml.