Problem: Calling changed_bytes() too often. Solution: Move changed_bytes() out of a loop. (Tor Perkins)