Removed multithreaded part (it was a fail)