Consolidate lines