Modified ReadHandshake method