Added dialog for overwriting.