Fernando Alonso described his fifth place on the grid for Sunday's Hungarian Grand Prix as a 'little miracle' but he also admitted that he and Ferrari had lost their way in recent races.
"Yes, this is definitely a positive result," he said. "To be fifth today, it was a little miracle," said the former world champion.
"I think it's a track that's not historically good for Ferrari with these low speed corners.
"To be today a little bit closer to the pole position is good news, especially after being 10th on the grid in Silverstone, eighth in Nurburgring.
"Coming back to the top five is good news. We cannot hide that we have Mercedes in front of us, Red Bull, and Lotus, and when you have the fourth fastest car it's a bit more difficult.
"We were a little bit lost in Silverstone. In Nurburgring we improved, but we were still not happy. Here, we are happier. We were worried about not being competitive at all here, so this is a good boost in motivation that we can have a winning car soon after the summer."
Ferrari's third row grid position is his best since his home Spanish Grand Prix in early May.
Alonso said he still had hopes of beating world champion Sebastian Vettel of Red Bull and cutting his lead of 34 points in the title race on Sunday.
"He starts second and we start fifth, so the first opportunity will be the first corner," he said.