Attached the team substitution operations to the activity.