Real-time detection for Edges based method

Previous commit was not previously saved.