Multithread script working on hardware