frames which corresponds to 3 minutes) these groups are stored. For the same reason as in the first BFS there is a boundary (1000 points) on the maximum amount of points in one set. Now all points, that are in the stored groups, are those where a WLF should have occurred and are written in the output file.

The results of the code are sensitive to the value of $\sigma_M$, which plays a role of a free parameter. It is clear that a lesser value of the threshold will increase the number of detected points which in fact will be false positives, that is the points, where the intensity randomly exceeded this threshold. A large value will decrease the susceptibility of the code to random noise, however it will also decrease the number of darker points belonging to flare kernels. To set an optimal value of the threshold, we studied a large range of values and followed two variables.

1.  The total number of points detected as flare kernels. We assumed that the total area of flare kernels would be much smaller than the total area of the field-of-view. Hence when the selected threshold was larger than optimal, we expected 