Updates quiz logic