High idle then dies

Just on a whim I replaced the power valve and now it idles perfectly!