Which of the following is NOT mentioned in the passage as one of the functions of lighthouses?
A.To notify sailors that bad weather is approaching
B.To indicate that land is near
C.To warn of danger from rocks and reefs
D.To help sailors determine their location