Added TailProduce static code and macros for streams definition.