Fixing the battery and network connection implementation.