Move from wait() and notifyAll() to periodic updating.