Write logic for groups of windows