Added ping to ensure comms are OK