Memory leak minimized and use less threads.