Added "filterByMaxSize" functionality