Added support for updating an activity.