Add Reference ID to control the memery