Added activityType method.