added flag for whether or not to allow broadcasting.