Improved choosing appropriate consume and produce.