Control traffic by changing stop lights at just the right times.