If there is an accident, the boxes are opened, the data is analyzed, and the reason for the accident excavated. This insures that procedures can be changed so that the same error never happens again. Through this method aviation has attained an impressive safety record.