Added a ping to keep the connection alive