Introducing a simple lock file, to hopefully improve things even further.