Added activity counter