To improve the traffic light timings you could add a sensor at the back of the queue to automate the timings.