Synchronized version.