Legacy perks code