Made getOccs more resilient.