Added total time counting