Added "time spent" as a parameter.