Add occurs function.