Working version With only 1 broker