Changed possibly inefficient vector handling code in IPC