Implementing window size limit.