Adding confirm method