Uses activity ID in leaveActivity method.