Fixing broadcast packet function for new function