Updated file with lockinstance variable.