Romain Grosjean was a delighted man after bouncing back from a disastrous weekend at Hockenheim to secure his best ever starting position ahead of the Hungarian GP.
Grosjean struggled in Germany and continued to be unable to match the pace he shown in the first part of the season in practice in Hungary.
However, overnight set-up changes meant the Frenchman returned to form in qualifying, securing second place on the grid ahead of tomorrow's race.
"We started the weekend coming back from the German GP, which was a bit of disaster," said Grosjean. "We worked hard, and analysed what went wrong, why I couldn't get the feeling I had at the start of year.
"In final practice it was getting better, and then we found the speed, got back into the car and tried to understand what was wrong with it.
"Starting from the front row is special. We know overtaking is difficult so the first job is done. Hopefully tomorrow we will keep our race pace and be able to save our tyres as much as we want and get some good battles with the guy at the front."
He added: "I think it was a lot of things together. I think in the last two races we were not where we had to be. We had some signs that things were not going as we wanted. The car was not handling as it should. So I think being second is a bit of a surprise after we struggled, but we improved lap after lap and I think this helped us."
The Lotus driver, whose previous best qualifying effort was a third place, is optimistic his race pace will be even stronger than today.
"Normally it is better on high fuel than low fuel so it's pretty good to be on the front row. We have been working a bit more on qualifying because it is a big key to the race. Hopefully the car will be good in the race. We have saved tyres and hopefully we have a good pace."
Team-mate Kimi Raikkonen qualified in fifth position.