Improve determination of section size