  try {
        // Get values from form
        const serverUrl = serverUrlInput.value;
        const version = parseInt(versionInput.value, 10);
        const count = parseInt(countInput.value, 10);
        let baton = batonInput.value ? parseInt(batonInput.value, 10) : null;

        // Validate inputs
        if (!serverUrl) {
          log('Server URL is required', 'error');
          return;
        }

        if (isNaN(version) || version < 0) {
          log('Version must be a non-negative number', '