WIP Make elementdef tables work better.