Speadup: added Multithreading