Personally I'd stick this code in the probe(). The value won't change once it's set, and that seems the more logical place for it in my opinion.