Log a warning when creating a target node with a target that's already in use
Don't make functions in a loop