Failed attempt at finding edges