Account for first and last subset special cases.