Created CreateCommandQueueArray function