Modified for better support.

Sometimes extreme latency will cause scripts to crash.