Lighthouses were developed to serve as navigational aids and to warn boats of dangerous areas. Their number has declined over the years due to expense of maintenance and the advent of electronic aids to navigation. However, many have been preserved as historical landmarks, often symbolizing strength, safety and hope in literature and cinema.