Added edge extraction.