Improvements to background Excel generation