Complete line detection implemented