Before changing Producer-Consumer API to Streams.