Line detection done