This would need some consideration when passing around the node that would get replaced.
Maybe tomorrow. I'm out for today.