Included the filtering for resizing.