Added option to allow only certain types to be selectable.