What happens if karma is 9999?  You should handle all possible values.