Added function to ChoiceBox