Added getSelected method