Added function to allow waiting for local network to stabilise.