Removed selectedName from sample to reflect current intent.