Added a mutex to the cluster struct to prevent race conditions for updating the cluster information.