Modified the rarity switch statement.