Bug fixes
Bug fix on junction stuff
This version runs until a junction goes dry.