Add logic to partitioning to loop through different positions for the divider.