Refactored out display table code.