Committing the patch provided by Lahiru (Frequent window & Lossy Frequen...

...t window)