Added a few lines to correctly order the discrepency table and limit it to display only 7 activities (was displaying all)