Modified tailorMadePotential to add observed nodes for constant arguments