First try for an ordonancor.
Add multithreading to deal more easily with very long script.