Added check to exclude vessels that are out of range.