Added logic for only add operation