Further improvements to sequence output by Francois-Rene Rideau.