Move generatePending check into Result.isUpToDate