Add logic of windows