Add foam and prepare the seabed distance computation