Adding internet and network state permissions.