Use var inside getCompChoice for readability