Better sizing algorithm on second box