Add a maximum for window size.