Added confirmation functionality