Use unsigned int for marks consistently