Added total method
version changed