Converted badges to hash