Refactored commands to incoported the selected person's ID