Something to think about.
It is good for me that I was afflicted,
that I might learn your statutes. Psalm 119:71 (ESV)
Often times when we are in a desperate situation, and we have reached the end of our wits. It is because we have ignored God. It is then when we come to the realization that the answer has always been God.