Managing creation and destruction of arrays for ID in CSP