Better edge recognition