Updated the search, first attempt to use derivatives to detect black lines