Code to fill in gaps in transition table.