Improved code, broadcast sample