C++ rewrite of Hms Gotland