Tentative fix on the bug. Broadcast functionality added, make sure it works with multiple clients.