Changed to uint for safety