public void pingSleep(long extra) throws IOException {
        int f = this.getPing();
        long timeToSleep = f + extra;
        LOG.debug("Time to sleep: {}", timeToSleep);
        try {
            Thread.sleep(timeToSleep);
        } catch (InterruptedException ex) {
            // ignore
        }
        LOG.debug("Finished sleeping");
    }