Updated inventory method to deal with the filter