Refactor the add.