And you thought railway crossing barriers were there to prevent accidents