Add script variables tab to infodialog.
Remove debug print d'oh!
Adjust for heading rows we will add

Last few rows were not being displayed.