Using broadcast to update the variable. This approach might work