Grupo TMM closed out 2018 in much better fashion after cutting off an ailing subsidiary.

The Mexican shipowner posted a MXN 47.8m ($2.5m) profit for the last three months of 2018, an improvement from the $193.6m loss it reported at the end of 2017.

The improvement, the Mexico City-traded company said, was due to spinning off TMM Division Maritima (TMMDM) announced