Rename code that generates table