Added overwrite dialog.

Fixes #30