There might be a problem in some cases when combining generator and boundary loops, especially when the generator loop tries to go through a boundary.