Refactored consumer and publisher with this bindings