Spacewalking astronauts triumphed over a stubborn bolt and installed a critical power-switching box at the International Space Station this week, reviving electrical systems.
"Looks like you fixed the station," mission control at Nasa's Johnson Space Centre in Houston told the crew on the radio.
The problem had cut the amount of electrical power available to the orbiting lab and a variety of equipment had to be turned off.
Engineers on the ground and the astronauts in orbit scrambled over the weekend to devise makeshift tools to clean metal shavings from the socket of the troublesome bolt after last week's failed effort to plug in the new power-relay unit.
Last week's spacewalk longest on record
This time, NASA's Sunita Williams and Japan's Akihiko Hoshide, part of NASA's Expedition 32 mission to the ISS, were armed with a blue toothbrush, a wire brush and other jury-rigged tools.
Have your say
Tell us what everyday tools you've used to work miracles
The two applied grease to the sticky bolt as well as extra pressure and plain old jiggling. They also brushed and blew away most if not all the metal shavings, debris that was discovered during last Thursday's eight-hour repair session, one of the longest spacewalks on record.
Wednesday's outing lasted 6 1/2 hours.
Although the space station remained stable, NASA was in a hurry to get the problem fixed because of the impending departure of Joseph Acaba, the U.S. astronaut who operated the hefty robot arm from inside. Acaba is due to return to Earth in 1 1/2 weeks.
ISS was running on reduced power
Altogether, the space station has four of these power-switching units, which relay electricity from the eight solar wings. Being down one unit meant the orbiting complex could draw power from only six of those wings.
The power store was further degraded over the weekend when, in an unrelated problem, a tripped circuit breaker prevented full access to yet another solar panel. That left the space station running on just five wings, a vulnerable situation.
Tension mounted at mission control as Wednesday's spacewalk approached the four-hour mark and the power-switching unit had yet to be installed. NASA considered calling it quits at that point but asked the astronauts whether they could keep going, given their progress. Both spacewalkers insisted on pressing ahead.
As Hoshide started to drive the bolt home, mission control asked the astronauts to report everything they saw and felt.
"My left hand just fell asleep because my fingers are crossed too long," mission control said. "We're holding our breath."
Finally, 4 1/2 hours into the spacewalk, Hoshide reported: "It is locked."
Mission control burst into applause. Soon afterward, mission control confirmed that the power-switching box was firmly in place and working properly.
"It's been like living on the set of Apollo 13 for the past few days," said mission control, referring to the 1970 effort to save three astronauts on the aborted moon mission. "NASA does impossible pretty darn well."
Bolt likely damaged on installation
As to how the vexing shavings ended up on the space station, the bolt was probably damaged when it was installed before launch, said NASA's space station program manager, Mike Suffredini.
It will be a few days before electrical systems are restored 402 kilometres up. And NASA still must contend with the tripped breaker from last weekend; another spacewalk ultimately may be needed.
The trouble knocked out one of the eight power channels emanating from the solar wings, a problem that persisted after Wednesday's spacewalk.
"One channel down is not a position you want to be in, but it doesn't send you into really worrying and having to rush out the door," Suffredini said.
Wednesday's spacewalk, meanwhile, earned Williams a place in history. The U.S. Navy captain — the lone woman on the crew — is now the world's most experienced female spacewalker, with 44 hours spent out in the vacuum over six excursions.
The previous record-holder, Peggy Whitson, sent up congratulations: "You go, girl!"
Williams replied: "Anybody could be in these boots."