The Holy Spirit directs us and motivates us. Those moments when we found ourselves in a slump were impossible times. We came to a complete halt and it was only the Holy Spirit that prompted us to get going again.
The same is true when we were saved from addiction. Sometimes it was the stumbling block that frustrated us that saved us from the troubling situation.
When we have been motivated to go the right direction by the Holy Spirit, it is no problem for us to praise God.