Started adding a debug feature to prefill the table, but ran into problems.  I'm pushing this anyway in the hope that I'll finish it later, and that it won't get in the way in the mean time.