Update to use only one thread.