@thbishop , I understand what you are saying now.  I fixed it so that it returns false if unable to authorize the account rather then just breaking out of the loop.