Generating working tables