Format code, fixing table definitions.