Added case for when you're not connected to the internet