Add in an onPing handler when in debug