Added line boundary splitting