Take actions based on traffic flow through a machine