Added max_size filter