Fix divide by zero exception on tiles that don't require network communications.
Clean up code