Change return types and method parameters from unsigned int to int