Re-working flow using a lookup table.