Added test producer and tweaked consumer.