The purpose of the mission was to deliver and attach the International Space Station's P5 truss segment and rewire the station's power system.