The substitution method.