Added window_sign. Invalidate function to be finished