Added built-in latency tracking. Breaks the tests in node because dependencies are missing package.json