Controlling the flow of Humans and Vehicles