Add peer id substitution.