Implementing occurance indexer, not completed yet