Tiny comment: `if (linkIndex == proxyChain.size() - 1) {` (Extra spaces}