Added ability to ask the user to select from a set of elements (of a specified type and that belong to them).