Implemented optional checking of files on save