Now allows filtering on type of activity.
Removed debug console logging.