Automating traffic detection