Implemented join and split lines.