Adding lock file.