Replaced confirm option, which is deprecated.