Updated to include info on getting inactive apids