Working indexing of windows