Adds onEdge() to header file.