Add confirmation to duplicate function.