Apply filter_by when specified