Badgestack - Original function file