Added selected ids API