Encapsulate the top-section sizing code