Added fix to force initial span to fit in memory in case where 5 (the default) is too large.