Rewrote 0.0.1 after two years. The script runs faster as a result.