Added multithreading to manipulator and entity movement