Update midpointlistener.cpp