Added description of the window selection algorithm.