Dynamic lock file and case