Fixed divide by 0 issue; more network connectivity fixes.