Fixing remote scripts
Properly calculate latency