Updated to use unsigned int.