Aone-eyed cat that went missing five years ago has been reunited with its owner, according to officials.

The Scottish SPCA announced in a press release Friday that the cat, Dexter, was found in a shipping container on an off-shore oil rig. It's not entirely clear how Dexter ended up on the rig; however, officials did say the container came from Peterhead—the Scotland town that Dexter has called home for the last five years.

"We were alerted yesterday to an incident of a cat being found in a shipping container offshore," said Scottish SPCA animal officer Aimee Findlay in Friday's release, adding that Dexter was flown back to shore via helicopter.

Officials quickly learned that Dexter had been living as a stray outside of the Peterhead Prison. There he was fed, "loved" and even given a special nickname.