See this Comm Center thread by Paul Howard. Change the logged text to indicate that it is trying the maximum exposure not -1.
This resulted in some refactoring of the code to make the flow easier to see and to make reporting of the process more understandable. This was venerable code!!