Added total violations calculation