Updating table structure and codes.