Added function retrieve and add.