CAPE CANAVERAL, Fla. (AP) — Shuttle Endeavour pulled away from the international space station on Monday and headed for home after a heartfelt farewell between the two crews.

It culminated 12 days of shared work, the longest mission ever of its kind.

The 10 space travelers performed a record-tying five spacewalks, put together a space station robot and provided a new Japanese compartment — and resident — for the orbiting complex.

Endeavour, Eyharts and six others are due back on Earth on Wednesday evening. It will wind up a 16-day trip for the shuttle.