Add maxflow rail