first draft of proc that chooses most detailed activity curve.