Issue 112

More reliably generate spreadsheets.

Fix #112