Layer order() reworked + stop iteration when no more crossings