Attempted to speed up the uVector and XbeeS6 code