Renew to fit both common and final exams, and fix some bugs.