Reimplement the calculation of qualifications