Nativenet length check and cleanup