Added capture of a selection from the user.