Some logic for smoothing coasts