Changed retry vars from ulong to uint.