Adding periodic ping to prevent idle disconnects.