Added debounce for resize.