A narrow win at St Johnstone helped soothe St Mirren's pain following two successive defeats, according to manager Danny Lennon.
Lennon said: "We were still hurting. It has been a very disappointing week but we've got to use that hurt as a motivational tool.
"Today the boys were terrific. We made some changes; that's the importance of the squad.
"We got a lot of balls into the box. Today we got it right in both boxes."
St Mirren, who lost to Hibernian in the last weekend before exiting the Scottish Communities League Cup at the hands of Ayr United on Tuesday, are in sixth place in the Scottish Premier League but they are only four points clear of 10th-place Aberdeen in the tight table.
The Buddies' winner was scored by Kenny McLean, his first for the club.
"That's been coming from wee Kenny over the last three to four games. He is a great young lad with a lot of ability and a big future," added Lennon.
"He is making a very valuable contribution to what we are trying to achieve."
And Lennon had a word of praise for the St Mirren supporters.
"Once again the fans' backing from the first minute to the last, getting us over the finishing line, was great," he said.
Referring to Tuesday's painful defeat by Brian Reid's Honest Men and a win over the Perth Saints in the previous round of the League Cup, the manager said: "What a way to respond, coming here to a difficult venue and winning.
"I don't think they have won here in the league for a long time but in the space of four weeks they have done it twice."