Better use of alloc/freeRK.