Use unsigned integer instead of enum.