Final modifications and grade output