A court in Sri Lanka on Monday barred the captain of an oil tanker that caught fire off the coast from leaving the Indian ocean nation.

A magistrate in Colombo imposed the restriction on Steiros Illias, captain of the MT New Diamond. He appeared in court after the attorney general directed police to name him a suspect in the fire. The next hearing in the case is on Oct. 12.

On Saturday, the owner of ship, Greece-based Porto Emporios Shipping Inc., agreed to pay $2.3 million to Sri Lanka for its help in extinguishing the blaze.

Captain of MT New Diamond, a large oil tanker that caught fire off Sri Lanka’s coast, Steiros Illias, center in personal protective costume, leaves the magistrate court with an unidentified Sri Lankan official in Colombo, Sri Lanka, Monday, Sept. 28, 2020. MT New Diamond, which was carrying nearly 2 million barrels of crude oil, was damaged by two fires in early September. (AP PhotoEranga Jayawardena)

Captain of MT New Diamond, a large oil tanker that caught fire off Sri Lanka’s coast, Steiros Illias, center in personal protective costume, leaves the magistrate court with an unidentified Sri Lankan official in Colombo, Sri Lanka, Monday, Sept. 28, 2020. MT New Diamond, which was carrying nearly 2 million barrels of crude oil, was damaged by two fires in early September. (AP PhotoEranga Jayawardena)

The government also plans to submit a claim to the owner for damage to the marine environment caused by the fire.

The 20-year-old ship, which was carrying nearly 2 million barrels of crude oil, was damaged by two fires in early September.

Experts have been working to salvage the ship, which remains in Sri Lankan waters.

Captain of MT New Diamond, a large oil tanker that caught fire off Sri Lanka’s coast, Steiros Illias, center in personal protective costume, speaks with unidentified Sri Lankan officials outside the Magistrate's court in Colombo, Sri Lanka, Monday, Sept. 28, 2020. MT New Diamond, which was carrying nearly 2 million barrels of crude oil, was damaged by two fires in early September. (AP PhotoEranga Jayawardena)

Captain of MT New Diamond, a large oil tanker that caught fire off Sri Lanka’s coast, Steiros Illias, center in personal protective costume, speaks with unidentified Sri Lankan officials outside the Magistrate's court in Colombo, Sri Lanka, Monday, Sept. 28, 2020. MT New Diamond, which was carrying nearly 2 million barrels of crude oil, was damaged by two fires in early September. (AP PhotoEranga Jayawardena)

The tanker was transporting crude oil from the port of Mina Al Ahmadi in Kuwait to the Indian port of Paradip, where the state-owned Indian Oil Corp. has a refinery.

The initial fire killed one Filipino crew member and injured another, while 21 other crew members escaped uninjured.