Update generators to handle different n and generate table