Version with rudimentary findLines. Not really working yet.