Changed multithreading structure
Fixed Concurrent access error