Switched to multithread