The algorithm search for a background region in the same CCD where the source is located, avoiding the same source column becuase of the out-of-time events. That circular background always have a radius larger than 3 pixels, otherwise no background is calculated.