Added code to rename wormholes (needs testing)