Added a longest sequence finder