Adjust table code