Added private function of getAvailable