Added proper authorization for regrading.