refs #7 Creating integer array of resource ids