A port of Flow control Bob's https://mods.factorio.com/mods/jgmrequel/flowcontrolbobs by jgmrequel to 0.15