Improvements to lcg-stimgen and lcg-stimulus.