Adding lock file to avoid multiple runs