Added client.loop() function to help keep everything alive