Add network tokenize function