Added random number for violation id.
Added a comparator for the key.