Finish elementdef hacking.