Background generation correction. Upper bound increased to n + 1