Made consistent variable change to unsigned long int.