Extended to process products based on the state.