Add ability to control selected items from the code.