Add getter for total