Converted all variables to uint types