Added feature of 'warning before creating a new file'