Implemented checking for lines and collapse from cleared lines