Disambiguate the sqrts we're using
Cast our strlens to uint32 to avoid compiler warnings.