Properly assign total # of fragments.