The new version works with multi threads.