Only check network connectivity every 10 seconds instead of every 1 second (will improve performance MASSIVELY)