Optmized AFRT::setFragmentRun function.