Adding code to automate construction of the DE table