Added asserts to Produce/Consume to help debugging issues