Add staging table logic.