Added ability to broadcast function packets. fix #770